package com.itcoon.cloud.framework.mybatis.core;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;

public abstract class BaseDO extends TraceDO {

    private static final long serialVersionUID = 8128915069673273639L;

    @TableLogic(delval = "id")
    @TableField(fill = FieldFill.INSERT, insertStrategy = FieldStrategy.NOT_NULL)
    private Long deleteFlag;

    public Long getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Long deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "BaseDO{" +
                " super="+super.toString()+
                ", deleteFlag=" + deleteFlag +
                "} ";
    }
}
